import request from '../../utils/request.js'

const state ={
  categoryList:[]
}
const mutations={
   SET_CATEGORY(state,categoryList){
		 state.categoryList=categoryList
	 }
}
const actions ={
   async getCategoryList({commit}){
		 const result = await request('/indexCateList')
		 // console.log(result)
		 commit('SET_CATEGORY',result)
	 }
}
const getters ={

}


export default{
	namespaced:true,
	state,
	mutations,
	actions,
	getters
}